package com.xwaf.platform.system.auth.serviceimpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.plugins.Page;
import com.xwaf.platform.common.service.service.CrudService;
import com.xwaf.platform.system.api.entity.auth.PermissionTemplateModule;
import com.xwaf.platform.system.api.service.auth.PermissionTemplateModuleService;
import com.xwaf.platform.system.auth.dao.PermissionTemplateModuleDao;

/**
 * 
 * <p>
 * 权限模板与模块关联表
 * <p>
 * 
 * @author 李聪 <br>
 * @email xwaf_love@yeah.net <br>
 * @since JDK 1.8<br>
 * @date 2019-5-25 12:37:04 <br>
 * @see 无<br>
 *      Copyright (c) 2019, xwaf_love@yeah.net All Rights Reserved.<br>
 */
@Transactional(readOnly = true)
@Service("permissionTemplateModuleService")
public class PermissionTemplateModuleServiceImpl extends
		CrudService<PermissionTemplateModuleDao, PermissionTemplateModule> implements PermissionTemplateModuleService {

	@Autowired
	private PermissionTemplateModuleDao permissionTemplateModuleDao;

	@Override
	public Page<PermissionTemplateModule> selPageList(Page<PermissionTemplateModule> page,
			PermissionTemplateModule permissionTemplateModule) {
		List<PermissionTemplateModule> list = permissionTemplateModuleDao.selPageList(page, permissionTemplateModule);
		page.setRecords(list);
		return page;
	}

}
